#include<func.h>

void function(int signum)
{       
        sleep(3);
        printf("i am %d,i am sleeping\n",signum);
}

int main()
{
    signal(SIGINT,function);
    signal(SIGQUIT,function);
    while(1);
    return 0;
}